$(document).ready(function(){
	$("#Myform").validate({
		rules: {
			phonenumber:{
				required: true,
				rangelength: [11,11]
			    },
			 vertificationnumber:{
                required: true,
                rangelength: [4,4]
			    }
		    },
		messages:{
		    	phonenumber:"请输入正确的手机号码",
		    	vertificationnumber:"请输入验证码"
		    },
		errorPlacement :function (error,element) {
			var errormessage = $('#errormessage');
			errormessage.html(error);
			errormessage.attr("style","opacity:1;");
			errormessage.animate({opacity:'0'},3000);

		}
	})
		

})

